package com.atguigu.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "service-order",fallback = OrdersFeignClient.class)
public interface OrdersClient {
    //根据课程id与用户id查询订单状态
    @GetMapping("/eduorder/order/isBuyCourse/{courseId}/{menberId}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("menberId") String menberId);
}
